#ifndef __ST_WORKMODE_H__
#define __ST_WORKMODE_H__

#include <rtthread.h>
#include "drv_gpio.h"

#define SET24VOUT  GET_PIN(B, 0)

typedef enum{
    NORMAL_MODE=0,
    LOWPOWER_MODE,
}WORK_MODE;

typedef struct WorkModeST
{
	uint8_t workModeStartFlag;
	uint16_t powerTimesCnt;
	uint32_t workmode;
	void (*set24vOpen)(void);
	void (*set24vClose)(void);
	
} WorkMode;	
extern WorkMode WorkMode_t;

void lowPowerProcessTask ( void * parameter );

#endif
